package com.zzh.bc.modules.api.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 接口表
 */
public class ApiVo {
    //接口ID
    private String apiId;
    /**
     * 接口名称
     */
    private String apiName;
    /**
     * 接口路径
     */
    private String apiPattern;
    /**
     * 属于哪个项目
     */
    private String apiProjectId;
    /**
     * 请求方式
     */
    private String apiReqMethod;
    /**
     * 创建人
     */
    private String createdBy;
    /**
     * 创建时间
     */
    private long createdTime;
    /**
     * 修改人ID
     */
    private String updatedBy;
    /**
     * 更改时间
     */
    private long updatedTime;
    /**
     * 用到的参数
     */
    private List<ApiParamVo> data;
    private String method;

    private String ids;

    public String getIds() {
        return ids == null ? "" : ids;
    }

    public void setIds(String ids) {
        this.ids = ids;
    }

    public String getMethod() {
        return method == null ? "" : method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public List<ApiParamVo> getData() {
        if (data == null) {
            return new ArrayList();
        }
        return data;
    }

    public void setData(List<ApiParamVo> data) {
        this.data = data;
    }

    public String getApiId() {
        return apiId == null ? "" : apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    public String getApiName() {
        return apiName == null ? "" : apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getApiPattern() {
        return apiPattern == null ? "" : apiPattern;
    }

    public void setApiPattern(String apiPattern) {
        this.apiPattern = apiPattern;
    }

    public String getApiProjectId() {
        return apiProjectId == null ? "" : apiProjectId;
    }

    public void setApiProjectId(String apiProjectId) {
        this.apiProjectId = apiProjectId;
    }

    public String getApiReqMethod() {
        return apiReqMethod == null ? "" : apiReqMethod;
    }

    public void setApiReqMethod(String apiReqMethod) {
        this.apiReqMethod = apiReqMethod;
    }

    public String getCreatedBy() {
        return createdBy == null ? "" : createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public long getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(long createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy == null ? "" : updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public long getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(long updatedTime) {
        this.updatedTime = updatedTime;
    }
}
